package com.shuoyue.ffmpegvideocut.controller.oss;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:minioconfig.properties")
public class MinioConfig {

    @Value("${minio.endpoint}")
    private String endpoint;
    @Value("${minio.accessKey}")
    private String accessKey;
    @Value("${minio.secretKey}")
    private String secretKey;
    @Value("${minio.keybucketName}")
    private String bucketName;


    @Value("${localMinio.rootPath}")
    private String rootPath;


    @Value("${m3u8.m3u8KeyUrlPath}")
    private String m3u8KeyUrlPath;
    @Value("${m3u8.m3u8KeyInfoUrlPath}")
    private String m3u8KeyInfoUrlPath;



    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getRootPath() {
        return rootPath;
    }

    public void setRootPath(String rootPath) {
        this.rootPath = rootPath;
    }

    public String getM3u8KeyUrlPath() {
        return m3u8KeyUrlPath;
    }

    public void setM3u8KeyUrlPath(String m3u8KeyUrlPath) {
        this.m3u8KeyUrlPath = m3u8KeyUrlPath;
    }

    public String getM3u8KeyInfoUrlPath() {
        return m3u8KeyInfoUrlPath;
    }

    public void setM3u8KeyInfoUrlPath(String m3u8KeyInfoUrlPath) {
        this.m3u8KeyInfoUrlPath = m3u8KeyInfoUrlPath;
    }
}
